<!--  -->
<template>
  <div>自定义v-model

  {{ key }}
  <div>
   <VmodelCom v-model="key"></VmodelCom>

   <button @click="update">修改</button>
  </div>
  </div>
</template>

<script lang='ts' setup>
import VmodelCom from '../../components/VmodelCom.vue';
import { reactive,toRefs,ref,onMounted} from 'vue'
const key=ref("hellworld");
const update=()=>{
    key.value="您好世界";
}
</script>
<style scoped>
</style>